package com.pubinfo.passbook.common.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xuhong
 * @since 2022-07-01
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_new_source_invoice_item")
@ApiModel(value = "TNewSourceInvoiceItem对象", description = "")
public class TNewSourceInvoiceItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "item_id", type = IdType.ASSIGN_ID)
    @JSONField(name="itemId")
    private String itemId;

    @TableField(value = "unique_code_of_invoice")
    @JSONField(name="uniqueCodeOfInvoice")
    private String uniqueCodeOfInvoice;

    @TableField("items")
    @JSONField(name="items")
    private String items;

    @ApiModelProperty("发票行性质")
    @TableField("nature_of_invoice_line")
    @JSONField(name="natureOfInvoiceLine")
    private String natureOfInvoiceLine;

    @ApiModelProperty("金额")
    @TableField("amount_excluding_tax")
    @JSONField(name="amountExcludingTax")
    private BigDecimal amountExcludingTax;

    @ApiModelProperty("数量")
    @TableField("quantity_of_goods_or_services")
    @JSONField(name="quantityOfGoodsOrServices")
    private BigDecimal quantityOfGoodsOrServices;

    @ApiModelProperty("单价")
    @TableField("unit_price_of_goods_or_services")
    @JSONField(name="unitPriceOfGoodsOrServices")
    private BigDecimal unitPriceOfGoodsOrServices;

    @ApiModelProperty("单位")
    @TableField("unit_of_goods_or_services")
    @JSONField(name="unitOfGoodsOrServices")
    private String unitOfGoodsOrServices;

    @ApiModelProperty("税额")
    @TableField("tax_amount")
    @JSONField(name="taxAmount")
    private String taxAmount;

    @ApiModelProperty("税率")
    @TableField("tax_rate")
    @JSONField(name="taxRate")
    private String taxRate;

    @ApiModelProperty("项目名称")
    @TableField("name_of_taxable_goods_or_services")
    @JSONField(name="nameOfTaxableGoodsOrServices")
    private String nameOfTaxableGoodsOrServices;

    @JSONField(name="inv:Items",serialize = false)
    public void setItems(String items) {
        this.items = items;
    }

    @JSONField(name="inv:NatureOfInvoiceLine",serialize = false)
    public void setNatureOfInvoiceLine(String natureOfInvoiceLine) {
        this.natureOfInvoiceLine = natureOfInvoiceLine;
    }

    @JSONField(name="inv:AmountExcludingTax",serialize = false)
    public void setAmountExcludingTax(BigDecimal amountExcludingTax) {
        this.amountExcludingTax = amountExcludingTax;
    }

    @JSONField(name="inv:QuantityOfGoodsOrServices",serialize = false)
    public void setQuantityOfGoodsOrServices(BigDecimal quantityOfGoodsOrServices) {
        this.quantityOfGoodsOrServices = quantityOfGoodsOrServices;
    }

    @JSONField(name="inv:UnitPriceOfGoodsOrServices",serialize = false)
    public void setUnitPriceOfGoodsOrServices(BigDecimal unitPriceOfGoodsOrServices) {
        this.unitPriceOfGoodsOrServices = unitPriceOfGoodsOrServices;
    }

    @JSONField(name="inv:UnitOfGoodsOrServices",serialize = false)
    public void setUnitOfGoodsOrServices(String unitOfGoodsOrServices) {
        this.unitOfGoodsOrServices = unitOfGoodsOrServices;
    }

    @JSONField(name="inv:TaxAmount",serialize = false)
    public void setTaxAmount(String taxAmount) {
        this.taxAmount = taxAmount;
    }

    @JSONField(name="inv:TaxRate",serialize = false)
    public void setTaxRate(String taxRate) {
        this.taxRate = taxRate;
    }

    @JSONField(name="inv:NameOfTaxableGoodsOrServices",serialize = false)
    public void setNameOfTaxableGoodsOrServices(String nameOfTaxableGoodsOrServices) {
        this.nameOfTaxableGoodsOrServices = nameOfTaxableGoodsOrServices;
    }
}
